<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://tempuri.org/" elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:2966/SysApprovalService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" />
  <xs:import schemaLocation="http://localhost:2966/SysApprovalService.svc?xsd=xsd5" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" />
  <xs:import schemaLocation="http://localhost:2966/SysApprovalService.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" />
  <xs:element name="SelectTask">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectTaskResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="SelectTaskResult" nillable="true" type="q1:ArrayOfTask" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetAppPrcId">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="model" nillable="true" type="q2:GetAppPrcIdVM" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetAppPrcIdResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="GetAppPrcIdResult" nillable="true" type="q3:GetAppPrcIdVM" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CreateTask">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="model" nillable="true" type="q4:CreateTaskVM" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CreateTaskResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="CreateTaskResult" nillable="true" type="q5:CreateTaskVM" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="ActionTask">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="model" nillable="true" type="q6:ActionTaskVM" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="ActionTaskResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="ActionTaskResult" nillable="true" type="q7:ActionTaskVM" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="FindAppPrcId">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="model" nillable="true" type="q8:CalAppPrcIdVm" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="FindAppPrcIdResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q9="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="FindAppPrcIdResult" nillable="true" type="q9:CalAppPrcIdVm" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CountUnwarnMessage">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="empId" type="xs:int" />
        <xs:element minOccurs="0" name="markAsWarn" type="xs:boolean" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CountUnwarnMessageResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q10="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="CountUnwarnMessageResult" nillable="true" type="q10:UnwarnTaskCountVM" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectExecutivePosition">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectExecutivePositionResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="SelectExecutivePositionResult" nillable="true" type="q11:ArrayOfExecutivePosition" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectApproveProcessGroup">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectApproveProcessGroupResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="SelectApproveProcessGroupResult" nillable="true" type="q12:ArrayOfApproveProcessGroup" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectApproveProcess">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="appPrcGrpEnum" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectApproveProcessResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q13="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="SelectApproveProcessResult" nillable="true" type="q13:ArrayOfApproveProcess" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectApprovePath">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectApprovePathResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q14="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="SelectApprovePathResult" nillable="true" type="q14:ArrayOfApprovePath" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectExecPosGroup">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectExecPosGroupResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q15="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="SelectExecPosGroupResult" nillable="true" type="q15:ArrayOfExecPosGroup" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectExecPosGroupDtls">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="execPosId" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SelectExecPosGroupDtlsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="SelectExecPosGroupDtlsResult" nillable="true" type="q16:ArrayOfExecPosGroupDtls" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertApproveProcess">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="name" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="appPrcGrpId" type="xs:int" />
        <xs:element minOccurs="0" name="createdBy" nillable="true" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertApproveProcessResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="InsertApproveProcessResult" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertApproveProcessGroup">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="name" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="createdBy" nillable="true" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertApproveProcessGroupResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="InsertApproveProcessGroupResult" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertApprovePathDtl">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="appPathId" type="xs:int" />
        <xs:element xmlns:q17="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="approverType" type="q17:ApproverType" />
        <xs:element minOccurs="0" name="execPosGroupId" nillable="true" type="xs:int" />
        <xs:element minOccurs="0" name="isExecPosEmployeesOnlyInSameJobSitePath" type="xs:boolean" />
        <xs:element minOccurs="0" name="posId" nillable="true" type="xs:int" />
        <xs:element minOccurs="0" name="amountMin" nillable="true" type="xs:decimal" />
        <xs:element minOccurs="0" name="amountMax" nillable="true" type="xs:decimal" />
        <xs:element minOccurs="0" name="isApproveAble" type="xs:boolean" />
        <xs:element minOccurs="0" name="isForwardable" type="xs:boolean" />
        <xs:element minOccurs="0" name="isRejectable" type="xs:boolean" />
        <xs:element minOccurs="0" name="isPendable" type="xs:boolean" />
        <xs:element minOccurs="0" name="isSendBackable" type="xs:boolean" />
        <xs:element minOccurs="0" name="isLockable" type="xs:boolean" />
        <xs:element minOccurs="0" name="isTakebackAble" type="xs:boolean" />
        <xs:element minOccurs="0" name="createdBy" nillable="true" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertApprovePathDtlResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="InsertApprovePathDtlResult" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertApprovePath">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="appPrcId" type="xs:int" />
        <xs:element minOccurs="0" name="stepNo" type="xs:int" />
        <xs:element minOccurs="0" name="createdBy" nillable="true" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertApprovePathResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="InsertApprovePathResult" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertExecPosGroup">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="name" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="createdBy" nillable="true" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertExecPosGroupResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="InsertExecPosGroupResult" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertExecPosGroupDtl">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="execPosGrpId" type="xs:int" />
        <xs:element minOccurs="0" name="execPosId" type="xs:int" />
        <xs:element minOccurs="0" name="createdBy" nillable="true" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertExecPosGroupDtlResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="InsertExecPosGroupDtlResult" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="UpdateAbsence">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="resultCheckRule" nillable="true" type="q18:CheckAbsenceRuleResultVM" />
        <xs:element minOccurs="0" name="contactAddress" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="description" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="requestTitle" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="updateBy" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="UpdateAbsenceResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q19="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="UpdateAbsenceResult" nillable="true" type="q19:CheckAbsenceRuleResultVM" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertAbsence">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q20="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="resultCheckRule" nillable="true" type="q20:CheckAbsenceRuleResultVM" />
        <xs:element minOccurs="0" name="contactAddress" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="description" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="requestTitle" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="createBy" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertAbsenceResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q21="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="InsertAbsenceResult" nillable="true" type="q21:CheckAbsenceRuleResultVM" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CheckAbsenceRule">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="empId" type="xs:int" />
        <xs:element minOccurs="0" name="absenceId" nillable="true" type="xs:int" />
        <xs:element minOccurs="0" name="absenceTypeId" type="xs:int" />
        <xs:element minOccurs="0" name="startDate" type="xs:dateTime" />
        <xs:element minOccurs="0" name="endDate" type="xs:dateTime" />
        <xs:element minOccurs="0" name="contactAddress" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="description" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="createdBy" type="xs:int" />
        <xs:element minOccurs="0" name="startTime" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="endTime" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="requestTitle" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CheckAbsenceRuleResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q22="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" minOccurs="0" name="CheckAbsenceRuleResult" nillable="true" type="q22:CheckAbsenceRuleResultVM" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="LoadApprovePathSimulate">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="applyToEmpId" type="xs:int" />
        <xs:element minOccurs="0" name="appPrcId" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="LoadApprovePathSimulateResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q23="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="LoadApprovePathSimulateResult" nillable="true" type="q23:ArrayOfApprovePathSimulate" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="LoadApprovePathSimulate2">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="applyToEmpId" type="xs:int" />
        <xs:element minOccurs="0" name="relatedEmpId" nillable="true" type="xs:int" />
        <xs:element minOccurs="0" name="createdByEmpId" nillable="true" type="xs:int" />
        <xs:element minOccurs="0" name="appPrcId" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="LoadApprovePathSimulate2Response">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q24="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="LoadApprovePathSimulate2Result" nillable="true" type="q24:ArrayOfApprovePathSimulate" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetTaskIdOfRef">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="appPrcId" type="xs:int" />
        <xs:element minOccurs="0" name="refId" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetTaskIdOfRefResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="GetTaskIdOfRefResult" nillable="true" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertMessageReplyWhichNoReplyButCompleted">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="InsertMessageReplyWhichNoReplyButCompletedResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="InsertMessageReplyWhichNoReplyButCompletedResult" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CheckSimulateWrongOrdering">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="CheckSimulateWrongOrderingResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="CheckSimulateWrongOrderingResult" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>